using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "BeKilledTarget-获得被杀死的棋子", menuName = "Skill/Target/BeKilledTarget-获得被杀死的棋子")]
public class BeKilledTarget : TargetSelectorBase
{
    public override List<Chess> SelectTargets(Chess chess, GameEvent e)
    {
        if (e is not KillChessEvent killChessEvent)
        {
            Debug.LogWarning("e类型错误");
            return null;
        }
        return new List<Chess>(){killChessEvent.DeadChess};
    }
}